package com.ruoyi.antchain.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 用途
 *
 * @author deng
 * @date 2020/11/13 16:49
 */
public interface VoteChainService {

    String contractid="newlandedu_test_vote_002";

    String contract="608060405234801561001057600080fd5b5060405161063938038061063983398101806040528101908080518201929190505050806000908051906020019061004992919061005c565b50600080549050600281905550506100d4565b82805482825590600052602060002090810192821561009e579160200282015b8281111561009d57825182906000191690559160200191906001019061007c565b5b5090506100ab91906100af565b5090565b6100d191905b808211156100cd5760008160009055506001016100b5565b5090565b90565b610556806100e36000396000f300608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630d15fd77146100885780632f265cf7146100b3578063392e6678146100fe5780637021939f14610147578063a9a981a314610192578063b13c744b146101bd578063cc9ab26714610206575b600080fd5b34801561009457600080fd5b5061009d610237565b6040518082815260200191505060405180910390f35b3480156100bf57600080fd5b506100e2600480360381019080803560001916906020019092919050505061023d565b604051808260ff1660ff16815260200191505060405180910390f35b34801561010a57600080fd5b5061012d60048036038101908080356000191690602001909291905050506102ec565b604051808215151515815260200191505060405180910390f35b34801561015357600080fd5b5061017660048036038101908080356000191690602001909291905050506103c3565b604051808260ff1660ff16815260200191505060405180910390f35b34801561019e57600080fd5b506101a76103e3565b6040518082815260200191505060405180910390f35b3480156101c957600080fd5b506101e8600480360381019080803590602001909291905050506103e9565b60405180826000191660001916815260200191505060405180910390f35b34801561021257600080fd5b50610235600480360381019080803560001916906020019092919050505061040c565b005b60035481565b6000610248826102ec565b15156102bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f63616e64696461746520697320696e76616c696400000000000000000000000081525060200191505060405180910390fd5b60016000836000191660001916815260200190815260200160002060009054906101000a900460ff169050919050565b600080600090505b60008054905081101561037c57826000191660008281548110151561031557fe5b906000526020600020015460001916141561036f577f2b766bfa48dbb99822ac647fffc163dc74b7857beedb5ec6782ed9826453db046001604051808215151515815260200191505060405180910390a1600191506103bd565b80806001019150506102f4565b7f2b766bfa48dbb99822ac647fffc163dc74b7857beedb5ec6782ed9826453db046000604051808215151515815260200191505060405180910390a1600091505b50919050565b60016020528060005260406000206000915054906101000a900460ff1681565b60025481565b6000818154811015156103f857fe5b906000526020600020016000915090505481565b610415816102ec565b1515610489576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f63616e64696461746520697320696e76616c696400000000000000000000000081525060200191505060405180910390fd5b6001806000836000191660001916815260200190815260200160002060008282829054906101000a900460ff160192506101000a81548160ff021916908360ff16021790555060016003600082825401925050819055507f690156027e055e69a001816111c1abd4287fa897e929662c9ad6108a84fe252381336040518083600019166000191681526020018281526020019250505060405180910390a1505600a165627a7a7230582023dc7f78d02b0543109d1f9acf8af9db5b34373c353dfd0c54140a6d775e48050029";


    /**
     * 投票结果
     *
     * @param lan
     * @return
     */
    AjaxResult vote(Integer[] lan);


    /**
     * 投票列表
     *
     * @return
     */
    TableDataInfo list();
}
